<template>
	<div class="login-container">
		<el-form :model="ruleForm" status-icon :rules="loginRules" ref="ruleForm" class="login-form">
			<div class="title">后台管理系统</div>
			<el-form-item prop="user">
				<el-input
					size="medium"
					prefix-icon="el-icon-user"
					placeholder="账号"
					type="user"
					v-model="ruleForm.loginAccount"
					autocomplete="on"
				></el-input>
			</el-form-item>
			<el-form-item prop="pass">
				<el-input
					size="medium"
					prefix-icon="el-icon-key"
					placeholder="密码"
					type="password"
					v-model="ruleForm.password"
					autocomplete="off"
				></el-input>
			</el-form-item>
			<el-form-item>
				<el-button class="submit" size="medium" type="primary" @click="submitForm('ruleForm')">登录</el-button>
			</el-form-item>
		</el-form>
	</div>
</template>

<script lang="ts">
import Login from "@/views/login/login";
export default Login;
</script>

<style lang="less" scoped>
.login-container {
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: #2d3a4b;
	.title {
		position: relative;
		font-size: 26px;
		color: #eee;
		margin: 0 auto 40px auto;
		text-align: center;
		font-weight: 700;
	}
	.login-form {
		position: relative;
		width: 520px;
		max-width: 100%;
		padding: 160px 35px 0;
		margin: 0 auto;
		overflow: hidden;
		.el-form-item {
			border: 1px solid hsla(0, 0%, 100%, 0.1);
			background: rgba(0, 0, 0, 0.1);
			border-radius: 5px;
			color: #454545;
			.el-input > input {
				height: 47px;
				background: transparent;
				border: 0;
				border-radius: 0;
				padding: 12px 5px 12px 15px;
				color: #eee;
				caret-color: #fff;
				-webkit-appearance: none;
			}
		}
		.submit {
			width: 100%;
		}
	}
}
</style>
